<?php

include_once(__DIR__."/../../utils/Utils.class.php");

class ApplyEventResult
{
    public $errcode = null; // uint
    public $errmsg = null; // uint
    public $sp_no = null; // uint

    static public function ParseFromArray($arr)
    { 
        $info = new ApplyEventResult();

        $info->errcode = Utils::arrayGet($arr, "errcode"); 
        $info->errmsg = Utils::arrayGet($arr, "errmsg"); 
        $info->sp_no = Utils::arrayGet($arr, "sp_no"); 

        return $info;
    }
}
